package com.api;

import com.bean.ResponseBean;
import com.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/api/v1")
public class HeartAction {

    @Autowired
    private RoomService roomService;


    @RequestMapping("/heart")
    private ResponseBean heart(HttpServletRequest request,String mac){
         roomService.onlineByMac(mac);
         return new ResponseBean(200,"ok",null);
    }
}
